package one.stand.service;

import one.stand.model.ResultModel;
import one.stand.request.SecKillRequest;
import one.stand.response.SecKillResponse;

import java.util.List;

/**
 * @author: Hongcj
 * @CreateDate: 2019/7/19 11:37
 * @Description:
 */
public interface SecKillService {
    /**
     * 秒杀列表
     * @param request
     * @return
     */
    ResultModel<List<SecKillResponse>> selectKillGoodsList(SecKillRequest request);

    /**
     * 添加秒杀
     * @param request
     * @return
     */
    ResultModel<Boolean> addKillGoodsInfo(SecKillRequest request);

    /**
     * 删除秒杀配置
     * @param request
     * @return
     */
    ResultModel<Boolean> delKillGoodsInfo(SecKillRequest request);

    /**
     * 秒杀列表编辑
     * @param request
     * @return
     */
    ResultModel<SecKillResponse> updateKillGoodsInfo(SecKillRequest request);

    /**
     * 发布秒杀商品
     * @param request
     * @return
     */
    ResultModel<Boolean> releaseKillGoods(SecKillRequest request);

}
